#ifndef __UPDTER_UTILS_H__
#define __UPDTER_UTILS_H__

#include "updater.types.h"


#define TFREE(x)  do { if ( NULL != x ) w_free(x); }while(0)


INT 			FindFile (ucore_t * ucore, CHAR * file_name);
CHAR *          ConstructName (CHAR * file_name_in, CHAR flag);
INT             DestroyFileList(ucore_t * ucore);
INT 			AddFile(ucore_t * , CHAR * file_name, ULONG flags);
INT 			ReadSpec(ucore_t *, CHAR * file_name);
VOID            PrintFileList(ucore_t *);
INT             ValidateFiles(ucore_t *);
INT             ExtractDirName ( CHAR * dirname,  const CHAR *file_name );
INT             CreatePath (CHAR * dir);
ULONG   		ExtractFlags(CHAR * string);
INT             AllocateInOutBuffers(ucore_t * ps_ucore, ULONG ul_in_buffer_size, ULONG ul_out_buffer_size);
#endif /* __UPDTER_UTILS_H__ */

